package mka.puzzle.shape;

/***
 * Circle
 * @version 20131124
 * 
 * @author NguyenBB
 */
public class SimpleCircle extends SimpleShape {
	private double radius;

	public SimpleCircle() {
		super();
		this.radius = 0;
	}

	public SimpleCircle(double radius) {
		super();
		this.radius = radius;
	}

	public String getName() {
		return "Circle";
	}

	public double getRadius() {
		return radius;
	}

	public void setRadius(double radius) {
		this.radius = radius;
	}

	public double getPerimeter() {
		return 2 * radius * Math.PI;
	}

	public double getArea() {
		return radius * radius * Math.PI;
	}

}
